package model

import (
	"time"
)

const (
	ServerTypeGate   = 2
	ServerTypeLogic  = 3
	ServerTypeBattle = 4
)

type DbServer struct {
	Id      int16     `gorm:"column:id"`
	Name    string    `gorm:"column:name"`
	Type    int8      `gorm:"column:type"`
	Status  int8      `gorm:"column:status"`
	Ip      string    `gorm:"column:ip"`
	Port    int32     `gorm:"column:port"`
	Stock   int32     `gorm:"column:stock"`
	Created time.Time `gorm:"column:created"`
}

func (s *DbServer) TableName() string {
	return "config_server"
}
